/**
 * 
 */
package hu.gbalage.owlforms.xforms.work;

import java.net.URI;
import java.util.HashMap;
import java.util.Map;

import hu.gbalage.owlforms.api.Form;

/**
 * @author balage
 *
 */
public class FormsCache {
	
	static Map<URI, Form> forms = new HashMap<URI, Form>();
	
	public static Form getForm(URI uri){
		if (!forms.containsKey(uri)){
			forms.put(uri, Boot.manager.getFactory().createForm(uri));
		}
		return forms.get(uri);
	}
	
}
